<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>主菜</title>
</head>
<body>
<h2>MainCourse</h2>
<table>
<tr>
<th>Dish Name</th>
<th>Price</th>
</tr>
<%
String[] dishName={"Foie Gras & Alaskan Snow Crab(磨房式煎鹅肝配阿拉斯加雪蟹钳金巴黎汁)","Mediterranean Cream Matsutake with Wild Truffle(普罗旺斯碳烤鳕鱼伴生煎鹅肝配黑醋栗)","Top Grade Beef Liver and Mushroom Truffle Sauce(顶级乳牛粒配牛肝菌松露汁伴红花泡沫)"};
int[] price={468,398,268};
for(int i=0;i<dishName.length;++i){
%>
<tr>
<td><%=dishName[i] %></td>
<td><%=price[i] %>元/每份</td>
<td>
<form action="/zz_java3/Order">
<input type="hidden" name="dishname" value="<%=dishName[i] %>">
<input type="hidden" name="price" value="<%=price[i] %>">
<input type="submit" value="Order" onclick="OrderSuccess()">
</form>
</td>
</tr>
<%
}
%>
</table>
<script type="text/javascript">
function OrderSuccess(){
		alert("点餐成功");
}
</script>
<form action="/zz_java3/OrderView">
<input type="submit" value="查看已点菜单">
</form>
<br>
<a href="/zz_java3/jman.competition16/Menu.jsp">返回</a>
</body>
</html>